package com.quad.innovators.salesease.context;

import com.quad.innovators.salesease.annotation.DataPermission;

public class DataPermissionContextHolder {

    private static final ThreadLocal<DataPermission> context = new ThreadLocal<>();

    public static void set(DataPermission dataPermission) {
        context.set(dataPermission);
    }

    public static DataPermission get() {
        return context.get();
    }

    public static void clear() {
        context.remove();
    }
}
